package com.sfpay.merchant.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sfpay.merchant.auth.entity.system.SysUserOnline;

import java.util.List;

/**
 * <p>
 * 在线用户记录 Mapper 接口
 * </p>
 *
 * @author fangchen
 * @since 2022-08-09
 */
public interface SysUserOnlineMapper extends BaseMapper<SysUserOnline> {

    void replaceInsert(SysUserOnline sysUserOnline);

    List<SysUserOnline> selectUserOnlineList(SysUserOnline userOnline);

    SysUserOnline selectOnlineById(String sessionId);

    int saveOnline(SysUserOnline online);
}
